package com.park.dao;

import com.park.bean.Tickets;
import com.park.bean.TicketsCap;
import com.park.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

@Mapper
public interface ITicketsCapDao {
    List<TicketsCap> getTicketsCap(@Param("ticketsCap")TicketsCap ticketsCap, @Param("page") Page page);
    List<Integer> getTicketsId(TicketsCap ticketsCap);
    List<String> getAttractsName(TicketsCap ticketsCap);
    List<Tickets> getTicketsByName(@Param("name") String string);
    List<Integer> checkTid(@Param("checkId") Integer id);
    List<String> checkTname(@Param("checkTname") String name);
    List<String> checkAname(@Param("checkName") String name);
    //List<TicketsCap> GetTickets(TicketsCap ticketsCap);
    int duplicateCheck(TicketsCap ticketsCap);

    int getCount(@Param ("ticketsCap")TicketsCap ticketsCap);
    int delTicketsCap(int id);
    int postTicketsCap(TicketsCap ticketsCap);
    int editTicketsCap(TicketsCap ticketsCap);

}
